<?php
    $username = $_POST["username"];

    setcookie("username",$username,time()+60*60*24*7);
?>